package com.digitalchina.lxnsy.entity;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.io.Serializable;
import java.util.List;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.entity
 * 创建人：byd
 * 创建时间：2017/3/29 17:03
 * 修改备注：
 * ================================================
 */

public class CropTypeVO implements Serializable, IPickerViewData {


    /**
     * id : 0d59c379-bb77-4970-ad98-08f033745556
     * createAt : 2017-03-26 20:30:30
     * createTime : 2017-03-26 20:30:30
     * updateAt : 2017-03-26 20:30:30
     * updateTime : 2017-03-26 20:30:30
     * status : null
     * sort : 0
     * version : 0
     * code : 400
     * name : 纤维作物
     * level : 1
     * pcode : -1
     * list : [{"id":"bfc5eb44-3ace-42ab-95c3-d358834ced57","createAt":"2017-03-26 20:30:30","createTime":"2017-03-26 20:30:30","updateAt":"2017-03-26 20:30:30","updateTime":"2017-03-26 20:30:30","status":null,"sort":0,"version":0,"code":"40001","name":"棉花","level":"2","pcode":"400","list":[],"persistent":true,"entityId":"bfc5eb44-3ace-42ab-95c3-d358834ced57"},{"id":"2b3b96d1-2479-4021-b78e-9602bfcd4dc4","createAt":"2017-03-26 20:30:30","createTime":"2017-03-26 20:30:30","updateAt":"2017-03-26 20:30:30","updateTime":"2017-03-26 20:30:30","status":null,"sort":0,"version":0,"code":"40002","name":"红麻","level":"2","pcode":"400","list":[],"persistent":true,"entityId":"2b3b96d1-2479-4021-b78e-9602bfcd4dc4"},{"id":"e928cf15-430d-44e7-9824-70ff1d28ebd7","createAt":"2017-03-26 20:30:30","createTime":"2017-03-26 20:30:30","updateAt":"2017-03-26 20:30:30","updateTime":"2017-03-26 20:30:30","status":null,"sort":0,"version":0,"code":"40003","name":"苎麻","level":"2","pcode":"400","list":[],"persistent":true,"entityId":"e928cf15-430d-44e7-9824-70ff1d28ebd7"},{"id":"ca0e97e5-0c08-4249-8bd1-55bbcf0af3ee","createAt":"2017-03-26 20:30:30","createTime":"2017-03-26 20:30:30","updateAt":"2017-03-26 20:30:30","updateTime":"2017-03-26 20:30:30","status":null,"sort":0,"version":0,"code":"40004","name":"亚麻","level":"2","pcode":"400","list":[],"persistent":true,"entityId":"ca0e97e5-0c08-4249-8bd1-55bbcf0af3ee"},{"id":"eea93c8f-a970-4b95-ab31-194d96988015","createAt":"2017-03-26 20:30:30","createTime":"2017-03-26 20:30:30","updateAt":"2017-03-26 20:30:30","updateTime":"2017-03-26 20:30:30","status":null,"sort":0,"version":0,"code":"40005","name":"黄麻","level":"2","pcode":"400","list":[],"persistent":true,"entityId":"eea93c8f-a970-4b95-ab31-194d96988015"}]
     * persistent : true
     * entityId : 0d59c379-bb77-4970-ad98-08f033745556
     */

    private String id;
    private String createAt;
    private String createTime;
    private String updateAt;
    private String updateTime;
    private Object status;
    private int sort;
    private int version;
    private String code;
    private String name;
    private String level;
    private String pcode;
    private boolean persistent;
    private String entityId;
    private List<ListBean> list;

    @Override
    public String getPickerViewText() {
        return name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(String updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public boolean isPersistent() {
        return persistent;
    }

    public void setPersistent(boolean persistent) {
        this.persistent = persistent;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable, IPickerViewData{
        /**
         * id : bfc5eb44-3ace-42ab-95c3-d358834ced57
         * createAt : 2017-03-26 20:30:30
         * createTime : 2017-03-26 20:30:30
         * updateAt : 2017-03-26 20:30:30
         * updateTime : 2017-03-26 20:30:30
         * status : null
         * sort : 0
         * version : 0
         * code : 40001
         * name : 棉花
         * level : 2
         * pcode : 400
         * list : []
         * persistent : true
         * entityId : bfc5eb44-3ace-42ab-95c3-d358834ced57
         */

        private String id;
        private String createAt;
        private String createTime;
        private String updateAt;
        private String updateTime;
        private Object status;
        private int sort;
        private int version;
        private String code;
        private String name;
        private String level;
        private String pcode;
        private boolean persistent;
        private String entityId;
        private List<?> list;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreateAt() {
            return createAt;
        }

        public void setCreateAt(String createAt) {
            this.createAt = createAt;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateAt() {
            return updateAt;
        }

        public void setUpdateAt(String updateAt) {
            this.updateAt = updateAt;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public Object getStatus() {
            return status;
        }

        public void setStatus(Object status) {
            this.status = status;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getPcode() {
            return pcode;
        }

        public void setPcode(String pcode) {
            this.pcode = pcode;
        }

        public boolean isPersistent() {
            return persistent;
        }

        public void setPersistent(boolean persistent) {
            this.persistent = persistent;
        }

        public String getEntityId() {
            return entityId;
        }

        public void setEntityId(String entityId) {
            this.entityId = entityId;
        }

        public List<?> getList() {
            return list;
        }

        public void setList(List<?> list) {
            this.list = list;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }
}
